package com.lechuang.goods.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
@Schema(description= "新增、修改请求实体")
public class GoodsCategorySaveDTO implements Serializable {
    @Schema(description= "主键id")
    private Long id;
    @Schema(description= "分类名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;
    @Schema(description= "分类级别", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer level;
    @Schema(description= "父级分类id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long parentId;
    @Schema(description= "分类排序", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer sort;
}
